package BusinessLogic.sale;


public class SaleItem {
    private String id;
    private String name;
    private double price;
    private double reduceprice;
    private int num;
   
    
    public SaleItem(String id,String name,double price,double reduceprice,int num){ 
        this.id = id;
        this.name = name;
        this.price = price;
        this.reduceprice=reduceprice;
        this.num = num;
    }
    
    
    public String toString(){
    	return id+"                    "+name+"                          "+price+"                          "+reduceprice+"                           "+num+"\n";
    }

    public String getID() {
        return id;
    }

    public String getName() {
        return name;
    }

    public double getPrice() {
        return price;
    }
    
    public double getReduceprice(){
    	return reduceprice;
    }
    
    public int getNum(){
    	return num;
    }

    public void setID() {
        this.id=id;
    }

    public void setName() {
        this.name=name;
    }

    public void setPrice() {
        this.price=price;
    }
    
    public void setReducePrice(){
    	this.reduceprice=reduceprice;
    }
    
    public void setNum(){
    	this.num=num;
    }
    
    public void reduceNum(int changenum){
    	num=num-changenum;
    }
    
    
}

